package org.sv3.sandv.controller;

import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.sv3.sandv.system.HelloSevice;

@RestController
@RequestMapping("/v1/hello")
@Tag(name = "用户模块", description = "用户模块的描述")
public class HelloController {
    private HelloSevice helloSevice;


    HelloController(@Autowired HelloSevice helloSevice){
        this.helloSevice = helloSevice;
    }

    @GetMapping("get")
    @Operation(summary = "获取用户信息", description = "以jpa的方式获取用户")
    public String helloWorld() {
        return this.helloSevice.getHello();
    }
}
